package com.mz.ieann.aide.pager.adapter

import android.view.View
import com.mz.ieann.aide.BR
import com.mz.ieann.aide.R
import com.mz.ieann.aide.base.vm.BaseVMAdapter
import com.mz.ieann.aide.databinding.AdapterWelcomeItemBinding
import com.mz.ieann.aide.pager.bean.WelComeContent

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/9/12 12:39
 */
class WelComePagerAdapter(imgList: ArrayList<WelComeContent>) :
    BaseVMAdapter<WelComeContent, AdapterWelcomeItemBinding>(imgList, R.layout.adapter_welcome_item, BR.welcome) {

    override fun onBindViewHolder(holder: ViewHolder, position: Int) {
        super.onBindViewHolder(holder, position)
        if (position == itemCount - 1){
            holder.binding.experience.visibility = View.VISIBLE
        }else {
            holder.binding.experience.visibility = View.GONE
        }
    }

}